#include "StrBlobLikeValue.h"

int pr_13_26()
{
    StrBlob b1;
    {
        StrBlob b2 = {"a", "an", "the"};
        b1 = b2;
        b2.push_back("about");
        cout << "sizeof b2 is: " << b2.size() << endl;
        cout << "begin and end element b2 is: "
             << b2.front() << " " << b2.back() << endl;
    }
    cout << "sizeof b1 is: " << b1.size() << endl;
    cout << "begin and end element b1 is: "
         << b1.front() << " " << b1.back() << endl;

   StrBlob b3 = b1;
   b3.push_back("next");
   cout << "sizeof b3 is: " << b3.size() << endl;
   cout << "begin and end element b3 is: "
        << b3.front() << " " << b3.back() << endl;

   cout << "all of element b1 is: " << endl;
   for (auto it = b1.begin(); it != b1.end(); it.incr()) {
       cout << it.deref() << endl;
   }
   return 0;
}
